package com.beta.vo.order;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by vector on 2017/1/9.
 */
@Getter
@Setter
public class OrderItemVO {

    private Integer id;

    private Integer orderId;

    private String orderCode;

    private String name;

    private Integer productItemId;

    private String productItemName;

    private String productItemText;

    private String posterUrl;

    private Integer quantity;

    private BigDecimal pricePerUnit;

    private BigDecimal weight;

    private BigDecimal freight;

    private BigDecimal price;

    private String chargeUnit;

    private String providerName;

    private String status;

    private String statusText;

    private boolean rejectable;

    private String refundStatus;

    private String refundStatusText;

    private BigDecimal refundRate;

    private String origin;

    private String level;

    // alias for provider_name, for origin(rails) app api schema
    public String getOwnerName() {
        return this.getProviderName();
    }

    public String getCode() {
        return this.getOrderCode();
    }

}
